package com.example.administrator.shzs.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.administrator.shzs.R;
import com.example.administrator.shzs.utils.ToastUtils;
import com.example.administrator.shzs.activity.BaseActivity;
import com.example.administrator.shzs.activity.LogInActivity;
import com.example.administrator.shzs.app.MyApplication;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 忘记密码
 */
public class ForgetPasswordActivity extends BaseActivity implements View.OnClickListener{

    @Bind(R.id.iv_back_forget_password_activity)
    ImageView ivBack;
    @Bind(R.id.tv_login_froget_password_activity)
    TextView tvLogin;
    @Bind(R.id.et_user_number_login_activity)
    EditText etUserNumber;
    @Bind(R.id.btn_find_password_forget_password_activity)
    Button btnFindPassword;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forget_password);
        ButterKnife.bind(this);
        MyApplication.app.activityList.add(this);
        setListeners();

    }

    private void setListeners() {

        ivBack.setOnClickListener(this);
        btnFindPassword.setOnClickListener(this);
        tvLogin.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()){

            case R.id.iv_back_forget_password_activity:

                finish();

                break;

            case R.id.tv_login_froget_password_activity:

                startActivity(new Intent(this,LogInActivity.class));

                break;

            case R.id.btn_find_password_forget_password_activity://找回密码

                ToastUtils.showMessageShort(this,"找回密码");

                break;
        }
    }
}
